package cn.good.yan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 用戶，用來新增
 *
 * @author shengren.yan
 * @create 2024/11/10
 */
@ToString
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Data
@TableName(value = "user")
public class User implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    // 用户名
    private String username;

    // 密码
    private String password;

    // 是否启用
    private Boolean enabled;

}
